package Server.DataBase;

import java.io.Serializable;
/**
 * 
 * class handle registration table
 *
 */
public class Reg implements Serializable {
	
	/**
	 * static final long serialVersionUID = 1L;
	 */
	private static final long serialVersionUID = 1L;
	/**
	 *idReg, idUser, idLesson, idCourse, grade, app 
	 */
	private int idReg, idUser, idLesson, idCourse, grade, app;
	
	private Course course;
	
	private String comments;
	/**
	 * 
	 * @param idReg
	 * @param idUser
	 * @param idLesson
	 * @param idCourse
	 * @param app
	 * @param grade
	 */
	public Reg(int idReg, int idUser, int idLesson, int idCourse, int app, int grade) {
		super();
		this.idReg = idReg;
		this.idUser = idUser;
		this.idLesson = idLesson;
		this.idCourse = idCourse;
		this.grade = grade;
		this.app = app;
	}
	
	/**
	 * 
	 * @param idReg
	 * @param idUser
	 * @param idLesson
	 * @param course
	 * @param app
	 * @param grade
	 * @param comments
	 */
	public Reg(int idReg, int idUser, int idLesson, Course course, int app, int grade, String comments) {
		super();
		this.idReg = idReg;
		this.idUser = idUser;
		this.idLesson = idLesson;
		this.course = course;
		this.idCourse = course.getIdCourse();
		this.grade = grade;
		this.app = app;
		this.comments = comments;
	}
	/**
	 * 
	 * @return course
	 */
	public Course getCourse() {
		return course;
	}
/**
 * 
 * @return idReg
 */
	public int getIdReg() {
		return idReg;
	}
	/**
	 * 
	 * @return idUser
	 */
	public int getIdUser() {
		return idUser;
	}
	/**
	 * 
	 * @return idLesson
	 */
	public int getIdLesson() {
		return idLesson;
	}
	/**
	 * 
	 * @return grade
	 */
	public int getGrade() {
		return grade;
	}
	/**
	 * 
	 * @return app
	 */
	public int getApp() {
		return app;
	}
	/**
	 * 
	 * @return idCourse
	 */
	public int getIdcourse() {
		return idCourse;
	}
/**
 * 
 * @return comments
 */
	public String getComments() {
		return comments;
	}
	
	
}
